#include <iostream>
#include <string>

using namespace std;

int main()
{
    cout<<"Hello! Please enter an offer!";
    string text, word;
    getline(cin, text);

    int colvo_slov=1, i2=0;
    int count1939 = text.size(),n=0;
    for (int i = 0; i<count1939; i++){
        if (text[i] == ' '){
            n++;
            word=text.substr(i2, i-i2);
            if(word[0]>=-128&&word[0]<=-97)
                n++;
            i2=i+1;

    }
    }

    word = text.substr(i2, count1939-i2);
    if(word[0]>=-128&&word[0]<=-97)
                n++;
    cout<<"The number of your words:"<<colvo_slov<<endl<<endl;
    cout<<"The number of words with a capital Cyrillic letter:"<<n<<endl;
}


